package com.codeforces.contest.c312;
import java.util.Scanner;


public class _312C {

	static Scanner scanner = new Scanner(System.in);
	static int N, K, tot;

	public static void main(String[] args) {
		N = scanner.nextInt();
		K = scanner.nextInt();
		tot = N * (N - 1) / 2;
		if (tot <= K) {
			System.out.println("no solution");
		}
		else {
			for (int i=1;i<=N;++i) {
				System.out.println(0 + " " + i);
			}
		}

	}

}
